package net;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IoSession;


public class ClientIoHandlerAdapter extends IoHandlerAdapter {
	@Override
	public void exceptionCaught(IoSession session, Throwable cause)
			throws Exception {
		cause.printStackTrace();
	}

	@Override
	public void messageReceived(IoSession session, Object message)
			throws Exception {
		//  TODO 
		System.out.println("new message");
	}

//	@Override
//	public void sessionIdle(IoSession session, IdleStatus status)
//			throws Exception {
//		System.out.println("IDLE " + session.getIdleCount(status));
//	}
}
